package cn.elead.chaos.framework.web.global;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 异常信息
 *
 * @author luopeng
 */
@Setter
@Getter
@ToString
@Builder
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
public class ErrorCode {
	/**
	 * http 状态码
	 */
	@Builder.Default
	private int code = 200;
	/**
	 * 错误描述
	 */
	private String msg;
	/**
	 * 路径
	 */
	private String path;
	/**
	 * 异常信息
	 */
	private String exception;
}
